<%@ page contentType="text/html; charset=utf-8"%>
<%@ include file="../../../common/include.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
<jsp:include page="../../../common/head.jsp"></jsp:include>
<script language="javascript">
	function saveinfo()
	{
		var objarr = new Array(
		["uploadFileType.fileTypeName","附件类型名称","notEmpty",""],
		["uploadFileType.fileTypeName","附件类型名称","max","String:100"],
		["uploadFileType.belongTable","所属业务","notEmpty",""],
		["uploadFileType.remark","附件类型说明","max","String:500"]
		);
	
		if(xj.CheckAll(objarr))
		{
				if(confirm("确认保存？"))
					return true;
				else
					return false	
		}
		else
			return false;
	}
	//返回
	function goback()
	{
		if($("#belongTables").val()=="")
			window.location.href="listUploadFileType.do";
		else
			window.location.href="listCommonUploadFileType.do?belongTables="+$("#belongTables").val();
	}
</script>

<title>修改附件类型</title>
</head>
<body>
<form action="updUploadFileType.do" method="post" name="form1" onsubmit="return saveinfo()">
<input type="hidden" name="uploadFileType.fileTypeId" value="${uploadFileType.fileTypeId}"/>
<input type="hidden" name="uploadFileType.fileTypeSign" value="${uploadFileType.fileTypeSign}"/>
<input type="hidden" name="belongTables" value="${belongTables}"/>
<div id="body_div">
	<w:ShowTitle name="添加附件类型">
	<w:TitleButton funcName="保存" onClickFunction="" urlImg="${ctx}/images/main/save.png" funcType="submit"/>
	<w:TitleButton funcName="返回" onClickFunction="goback()" urlImg="${ctx}/images/main/back.png"/>
	</w:ShowTitle>
	<div id="body_content">
  <table width="100%">
    <tr>
	   <td>附件类型名称</td>
	   <td class="left_align"><input type="text" name="uploadFileType.fileTypeName" value="${uploadFileType.fileTypeName}"/></td>
    </tr>
    <tr>
	   <td>所属业务模块</td>
	   <td class="left_align">
	   		<w:select name="uploadFileType.belongTable" value="${uploadFileType.belongTable}">
	   			<w:option optionLabel="请选择" optionValue=""></w:option>
	   			<w:options options="${belongTableList}" optionLabel="typeLable" optionValue="typeValue"></w:options>
	   		</w:select>
	   </td>
    </tr>
	<tr>
		<td>备注</td>
        <td class="left_align"><textarea name="uploadFileType.remark" rows="5" cols="80">${uploadFileType.remark}</textarea></td>
	</tr>
</table>
</div>
</div>
</form>
</body>
</html>
